package com.pda.gongpin.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.pda.gongpin.R;
import com.pda.gongpin.bean.HandingOutStaticsBean;
import com.wangshen.base.ui.mvp.base.adapter.BaseAdapter;

import java.util.List;

public class HandingOutStaticsAdapter extends BaseAdapter<HandingOutStaticsBean> {
    public HandingOutStaticsAdapter(int layoutResId, @Nullable List<HandingOutStaticsBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, HandingOutStaticsBean item) {
        super.convert(helper, item);
        helper.setText(R.id.tv_sku,item.getSku());
        helper.setText(R.id.tv_articleId,"物资编号："+item.getArticleId());
        helper.setText(R.id.tv_articleName,"物资名称："+item.getArticleName());
        helper.setText(R.id.tv_inNum,"应出库："+item.getStackNum()+"");
        helper.setText(R.id.tv_alreadyInNum,"已出库："+item.getAlreadyInNum()+"");
        helper.setText(R.id.tv_spec,"规格："+item.getArticleSpec()+"");
    }
}
